<%@page import="java.util.List"%>
<%@page import="Koneksi.Koneksi"%>
<%@page import="Koneksi.pesan"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.util.logging.Logger"%>
<%@page import="java.util.logging.Level"%>
<%@page import="java.sql.SQLException"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Tabel Pesanan</title>
    </head>
    <body bgcolor="black">
    <center><font color="white">
        <a href="Home.jsp"><img src="gambar/Beranda.jpg"></a>
        <a href="Pra Home.jsp"><img src="gambar/Logout.jpg"></a>
        <br/>
        <img src="gambar/alfarmasi.jpg"/><br/>
        <br/>
        <a href="tTerima.jsp"><img src="gambar/menuTerima.jpg"></a><img src="gambar/spasi.jpg">
        <a href="Pesan.jsp"><img src="gambar/menuPesan.jpg"></a>
        <br/>
        <hr><br/>
        <%
            pesan Stok = new pesan();
            List<pesan> liststok = Stok.tampil();
        %>
        <font size="6"><b>TABEL PESANAN</b></font>
        <table align="center" width="444" height="100" border="5" cellpadding="1" cellspacing="3">
            <tr>
                <th bgcolor="white"><div align="center"><font color="black">Kode Barang</font></div></th>
                <th bgcolor="white"><div align="center"><font color="black">Jumlah Barang</font></div> </th>
            </tr>
            <tr>
                <%
                    for (pesan stoks : liststok) {
                %>
                <td><div align="center"><%=stoks.getKode()%></div></td>
                <td><div align="center"><%=stoks.getJumlah()%></div></td>
            </tr>
            <%
                }
            %>
        </table>
        <br/><hr>Copyright &copy; 2013 by <a href="http://www.facebook.com/pasca1412"><b>Depankos Production</b></a> - Tugas RPL Obyek
    </center>
</body>
</html>
